package com.jxm.test;

import com.jxm.tree.BinaryTree;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2022/6/28 11:09
 * @Version: 1.0
 */
public class BinaryTreeMaxDepth {

    public static void main(String[] args) {
        BinaryTree<String, String> bt = new BinaryTree<>();
        bt.put("E", "5");
        bt.put("B", "2");
        bt.put("G", "7");
        bt.put("A", "1");
        bt.put("D", "4");
        bt.put("F", "6");
        bt.put("H", "8");
        bt.put("C", "3");
        int i = bt.maxDepth();

        System.out.println(i);

    }
}
